package com.fa4j.system.login;

import com.fa4j.system.login.dto.LoginSessionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(contextId = "loginSessionClient", name = "fa4j-system", path = "system/login")
public interface LoginSessionClient {

    @GetMapping("session")
    LoginSessionDTO getSession(@RequestParam("token") String token);
}
